﻿
namespace GSOrganization.Application;

/// <summary>
/// 列表的分页传参基类
/// </summary>
public class DataParam
{
    public DataParam()
    {

    }
    private int pagemin = 1;
    private int pagesize = 10;
    /// <summary>
    /// 第几页
    /// </summary>
    public int Page
    {
        get => pagemin;
        set => pagemin = value < 1 ? 1 : value;//防止输入0，或者负数，会报异常check the manual that corresponds to your MySQL server version for the right syntax
    }
    /// <summary>
    /// 行数
    /// </summary>
    public int Limit
    {
        get => pagesize;
        set => pagesize = value > 1000 ? 1000 : value;//为了安全，防止大数据瘫痪服务器,不超过1000
    }

}
